//
// Created by 郝羽 on 2018/6/22.
//

#ifndef RTC_XSWITCH2_PING_H
#define RTC_XSWITCH2_PING_H

#include "config.hpp"
#include "stat.hpp"

struct Pinger;

typedef void (*pinger_report)(int elapsed, Histogram<int, 32> &ping_time,
        void* user_data);

Pinger* pinger_open(Context& ctx);

void pinger_close(Pinger*);

Histogram<int, 32> pinger_result(Pinger*);

#endif //RTC_XSWITCH2_PING_H
